package com.lc.cehui.http.response;

import com.google.gson.annotations.SerializedName;

import java.util.List;

public class BusinessIndex {


    /**
     * code : 200
     * msg : 成功
     * flag : F
     * page : 1
     * data : {"store":{"store_id":0,"name":"测绘商城","picurl":""},"coupon":[{"id":1,"name":"测试优惠券","circul":100,"start_time":"2021-12-02","end_time":"2022-12-02","shold_price":50,"red_price":5,"is_status":1},{"id":2,"name":"无门槛红包","circul":100,"start_time":"2022-01-01","end_time":"2023-01-01","shold_price":0,"red_price":2,"is_status":1}],"goods":[{"id":20,"class":69,"class_pid":0,"name":"企业招聘商品推荐","cover_img":"http://dxm75.longcai.pw/uploads/20211203/e20303a4a8f36b50dce614e48b608093.png","price":"4600","state":1},{"id":7,"class":71,"class_pid":0,"name":"A-LEVEL选课指南","cover_img":"http://dxm75.longcai.pw/uploads/20211129/5cf3574eb48a5ab295c8a72d8210152c.jpg","price":"1200","state":1},{"id":6,"class":69,"class_pid":0,"name":"高精度工程测量水准仪","cover_img":"http://dxm75.longcai.pw/uploads/20211129/1bd4879fffef1c50a5f0ecba016dde85.jpg","price":"200","state":2}]}
     */

    private String code;
    private String msg;
    private String flag;
    private String page;
    private DataBean data;

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public String getFlag() {
        return flag;
    }

    public void setFlag(String flag) {
        this.flag = flag;
    }

    public String getPage() {
        return page;
    }

    public void setPage(String page) {
        this.page = page;
    }

    public DataBean getData() {
        return data;
    }

    public void setData(DataBean data) {
        this.data = data;
    }

    public static class DataBean {
        /**
         * store : {"store_id":0,"name":"测绘商城","picurl":""}
         * coupon : [{"id":1,"name":"测试优惠券","circul":100,"start_time":"2021-12-02","end_time":"2022-12-02","shold_price":50,"red_price":5,"is_status":1},{"id":2,"name":"无门槛红包","circul":100,"start_time":"2022-01-01","end_time":"2023-01-01","shold_price":0,"red_price":2,"is_status":1}]
         * goods : [{"id":20,"class":69,"class_pid":0,"name":"企业招聘商品推荐","cover_img":"http://dxm75.longcai.pw/uploads/20211203/e20303a4a8f36b50dce614e48b608093.png","price":"4600","state":1},{"id":7,"class":71,"class_pid":0,"name":"A-LEVEL选课指南","cover_img":"http://dxm75.longcai.pw/uploads/20211129/5cf3574eb48a5ab295c8a72d8210152c.jpg","price":"1200","state":1},{"id":6,"class":69,"class_pid":0,"name":"高精度工程测量水准仪","cover_img":"http://dxm75.longcai.pw/uploads/20211129/1bd4879fffef1c50a5f0ecba016dde85.jpg","price":"200","state":2}]
         */

        private StoreBean store;
        private List<CouponBean> coupon;
        private List<GoodsBean> goods;

        public StoreBean getStore() {
            return store;
        }

        public void setStore(StoreBean store) {
            this.store = store;
        }

        public List<CouponBean> getCoupon() {
            return coupon;
        }

        public void setCoupon(List<CouponBean> coupon) {
            this.coupon = coupon;
        }

        public List<GoodsBean> getGoods() {
            return goods;
        }

        public void setGoods(List<GoodsBean> goods) {
            this.goods = goods;
        }

        public static class StoreBean {
            /**
             * store_id : 0
             * name : 测绘商城
             * picurl :
             */

            private Integer store_id;
            private String name;
            private String picurl;

            public Integer getStore_id() {
                return store_id;
            }

            public void setStore_id(Integer store_id) {
                this.store_id = store_id;
            }

            public String getName() {
                return name;
            }

            public void setName(String name) {
                this.name = name;
            }

            public String getPicurl() {
                return picurl;
            }

            public void setPicurl(String picurl) {
                this.picurl = picurl;
            }
        }

        public static class CouponBean {
            /**
             * id : 1
             * name : 测试优惠券
             * circul : 100
             * start_time : 2021-12-02
             * end_time : 2022-12-02
             * shold_price : 50
             * red_price : 5
             * is_status : 1
             */

            private Integer id;
            private String name;
            private Integer circul;
            private String start_time;
            private String end_time;
            private Integer shold_price;
            private Integer red_price;
            private Integer is_status;

            public Integer getId() {
                return id;
            }

            public void setId(Integer id) {
                this.id = id;
            }

            public String getName() {
                return name;
            }

            public void setName(String name) {
                this.name = name;
            }

            public Integer getCircul() {
                return circul;
            }

            public void setCircul(Integer circul) {
                this.circul = circul;
            }

            public String getStart_time() {
                return start_time;
            }

            public void setStart_time(String start_time) {
                this.start_time = start_time;
            }

            public String getEnd_time() {
                return end_time;
            }

            public void setEnd_time(String end_time) {
                this.end_time = end_time;
            }

            public Integer getShold_price() {
                return shold_price;
            }

            public void setShold_price(Integer shold_price) {
                this.shold_price = shold_price;
            }

            public Integer getRed_price() {
                return red_price;
            }

            public void setRed_price(Integer red_price) {
                this.red_price = red_price;
            }

            public Integer getIs_status() {
                return is_status;
            }

            public void setIs_status(Integer is_status) {
                this.is_status = is_status;
            }
        }

        public static class GoodsBean {
            /**
             * id : 20
             * class : 69
             * class_pid : 0
             * name : 企业招聘商品推荐
             * cover_img : http://dxm75.longcai.pw/uploads/20211203/e20303a4a8f36b50dce614e48b608093.png
             * price : 4600
             * state : 1
             */

            private Integer id;
            @SerializedName("class")
            private Integer classX;
            private Integer class_pid;
            private String name;
            private String cover_img;
            private String price;
            private Integer state;

            public Integer getId() {
                return id;
            }

            public void setId(Integer id) {
                this.id = id;
            }

            public Integer getClassX() {
                return classX;
            }

            public void setClassX(Integer classX) {
                this.classX = classX;
            }

            public Integer getClass_pid() {
                return class_pid;
            }

            public void setClass_pid(Integer class_pid) {
                this.class_pid = class_pid;
            }

            public String getName() {
                return name;
            }

            public void setName(String name) {
                this.name = name;
            }

            public String getCover_img() {
                return cover_img;
            }

            public void setCover_img(String cover_img) {
                this.cover_img = cover_img;
            }

            public String getPrice() {
                return price;
            }

            public void setPrice(String price) {
                this.price = price;
            }

            public Integer getState() {
                return state;
            }

            public void setState(Integer state) {
                this.state = state;
            }
        }
    }
}
